<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<div id="asideAffix" class="aside" data-spy="affix">
    <div class="profile">
        <div class="user-info">
            <div class="user-avatar">
                <a class="frame-border" href="#"><img alt="" src="${volunteer.headUrl}"></a>
            </div>
            <h6 class="user-name"><a href="#">${volunteer.nickName}</a></h6>
            <p class="user-orgnization"><a href="#">${group.name}</a></p>
            <p class="user-location"><i class="fa fa-map-marker" aria-hidden="true"></i>${group.regAddress}</p>
        </div>
        <c:if test="${group != null}">
        <ul class="user-stats-list">
            <li class="user-stats-item">
                <a href="${ctx}/groupVolunteer?pageNumber=1">
                    <span class="title">待审核招募</span>
                    <span class="count">${groupWaiteApplys}</span>
                </a>
            </li>
            <li class="user-stats-item like last">
                <a href="${ctx}/groupRecruitVolunteer?pageNumber=1">
                    <span class="title">待挂靠社团</span>
                    <span class="count">${groupRecriuteWaiteApplys}</span>
                </a>
            </li>
        </ul>
        <ul class="user-profile-action-list" id="asideAccordion">
            <li class="user-profile-action-item">
                <a href="${ctx}/dashboard?groupCode=${group.groupCode}">统计信息</a>
            </li>
            <li class="user-profile-action-item panel">
                <a class="user-profile-accordion collapsed" data-toggle="collapse" data-parent="#asideAccordion" href="#asideCollapse1">志愿者 <i class="fa fa-angle-right" aria-hidden="true"></i></a>
                <ul class="panel-collapse collapse" id="asideCollapse1">
                    <li><a href="${ctx}/volunteer">志愿者管理</a></li>
                    <!--
                    <li><a href="${ctx}/volunteer/reg">注册志愿者</a></li>
                    -->
                </ul>
            </li>
            <li class="user-profile-action-item panel">
                <a class="user-profile-accordion collapsed" data-toggle="collapse" data-parent="#asideAccordion" href="#asideCollapse2">活动 <i class="fa fa-angle-right" aria-hidden="true"></i></a>
                <ul class="panel-collapse collapse" id="asideCollapse2">
                    <li><a href="${ctx}/activity">活动管理</a></li>
                    <!--
                    <li><a href="${ctx}/activity/pubSingle">发布活动</a></li>
                    -->
                </ul>
            </li>
            <!-- DropDown Menu Right
            <li class="user-profile-action-item dropdown-submenu dropdown-menu-right">
                <a href="#" onclick="return false;">志愿者 <i class="fa fa-angle-right" aria-hidden="true"></i></a>
                <ul class="dropdown-menu">
                    <li><a href="volunteer_recruitment.html">志愿者招募</a></li>
                    <li><a href="volunteer_management.html">志愿者管理</a></li>
                </ul>
            </li>
            <li class="user-profile-action-item dropdown-submenu dropdown-menu-right">
                <a href="#" onclick="return false;">活动 <i class="fa fa-angle-right" aria-hidden="true"></i></a>
                <ul class="dropdown-menu">
                    <li><a href="single_events.html">单次活动</a></li>
                    <li><a href="periodical_events.html">定期活动</a></li>
                </ul>
            </li>
            //-->
        </ul>
        </c:if>
    </div>
</div>
